import Vue from 'vue';
import Vuex from 'vuex';
import modules from './modules';
import getters from './getters';
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex);


// 入口store 只填写两个
const store = new Vuex.Store({
  modules,// 模块划分
  getters,// 缓存
  plugins: [createPersistedState()]
});

export default store;
